<?php
declare(strict_types=1);

namespace App\Resource\LotteryTurntable\Prize;


use Illuminate\Http\Resources\Json\JsonResource;

class Resource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            "id" => $this->id,
            "name" => $this->name,
            "picture" => $this->picture,
            "coin" => $this->price ?? $this->coin,
        ];
    }
}